package cc.sjfx.sharedoc.fragment;

import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.View;
import cc.sjfx.sharedoc.activity.BasicFragmentActivity;

public class BasicFragment extends Fragment {
	protected Context context;
	protected BasicFragmentActivity basicActivity;
	@Override
	public void	onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);
		context=getActivity();
		basicActivity=(BasicFragmentActivity)context;
	}
    @Override
    public void setMenuVisibility(boolean menuVisible) {
        super.setMenuVisibility(menuVisible);
        if (this.getView() != null)
            this.getView().setVisibility(menuVisible ? View.VISIBLE : View.GONE);
    }
}
